import React from 'react'
import {Switch, Route,} from 'react-router-dom'

import StartLiveMain from "./StartLiveMain/StartLiveMain"
import LiveSetting from "./LiveSetting/LiveSetting"
import LiveDevoteRank from "./LiveDevoteRank/LiveDevoteRank"

const StartLiveContainer = props => {
    const {match,} = props

    return (
        <Switch>
            <Route path={`${match.url}/`} exact component={StartLiveMain} />
            <Route path={`${match.url}/setting`} component={LiveSetting} />
            <Route path={`${match.url}/devote-rank`} component={LiveDevoteRank} />
        </Switch>
    )
}

export default StartLiveContainer
